<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理案例</title>
<link href="${pageContext.request.contextPath }/css/styles.css" rel="stylesheet" type="text/css" />
 <link href="${pageContext.request.contextPath }/css/facebox.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.7.2.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		
		var self = $('div[limit]');
		
		self.each(function(){
			
		var objString = $(this).text();
		
		var objLength = $(this).text().length;
		
		var num = $(this).attr('limit');
		
		if(objLength > num){
			
		$(this).attr('title',objString);
		objString = $(this).text(objString.substring(0,num) + '...');
		}
		});
	});
</script>
 <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.min.js"></script>

    
    <!-- LOAD TIPSY TOOLTIPS-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.tipsy.js"></script>
   
    <!-- LOAD CUSTOM JQUERY SCRIPTS-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/scripts.js"></script>	
    
	 <!-- LOAD FACEBOX -->
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/facebox.js"></script>
    

    <!-- LOAD FLOT GRAPHS -->
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.flot.pack.js"></script>
   
    <!-- LOAD GRAPH JAVASCRIPT FILE-->
	<script src="${pageContext.request.contextPath }/js/graphs.js" type="text/javascript"></script>
	
	<style type="text/css">
	body { overflow-x: hidden; overflow-y: auto; } 
	</style>
</head>
<body>
	<div class="result-wrap" style="width: 80%;margin-left: 10%;">
		<form name="myform" id="myform" method="post">
			<div class="result-title">
				<div class="result-list">
					<h1 align="left">案例管理</h1>
				</div>
			</div>
			<div class="result-content" align="center">
				<table border="1" align="center" class="result-tab" width="100%">
					<tr class="even">
						<th align="left">公司名称</th>
						<th align="left">案例类型</th>
						<th align="left">产品名称</th>
						<th align="left">产品标题</th>
						<!-- <th>简介</th> -->
						<th align="left">办公电话</th>
						<th>地址</th>
						<!-- <th>图片</th> -->
						<th align="left">是否发布</th>
						<th colspan="2">操作</th>
					</tr>
					<s:iterator value="#request.list" var="i">
					<tr>
						<td><div align="center" limit="10"><s:property value="Company_Name"/></div> </td>
						<td><div align="center" limit="10"><s:property value="Type_Name.business_Type.Type_Name"/>-<s:property value="Type_Name.Type_Name"/></div> </td>
						<td><div align="center" limit="10"><s:property value="Product_Name"/></div> </td>
						<td><div align="center" limit="10"><s:property value="advantage"/></div> </td>
						<%-- <td><div align="left" limit="20"><s:property value="Brief_Introduction"/></div> </td> --%>
						<td><div align="center" limit="10"><s:property value="Office_Phone"/></div> </td>
						<td><div align="center" limit="10"><s:property value="Address"/></div> </td>
						<%-- <td><img alt="" style="width: 5%;height: 5%;" src="<s:property value="Picture"/>"><a class="imglistbutton" rel="facebox" href="<s:property value="Picture"/>"></a> </td> --%>
						<td><div align="center" limit="50"><s:property value="IsPublish"/></div> </td>
						<td><a class="link-update" 
						href="${pageContext.request.contextPath }/case/updateCasePage.action?id=<s:property value="Id"/>">修改</a>
						&nbsp;&nbsp;&nbsp;&nbsp;<a class="link-update" 
						href="${pageContext.request.contextPath }/case/deleteCase.action?id=<s:property value="Id"/>">删除</a></td>
					</tr>
					</s:iterator>
				</table>
			</div>
		</form>
	</div>
</body>
</html>